package com.zoro.barn.business.service.pp.business.product.dao;

import com.zoro.barn.business.service.pp.business.product.entity.BarnProductUser;
import com.zoro.barn.commons.db.annotations.MybatisMapper;

import java.util.Collection;
import java.util.List;

/**
 * @author zhaoxingwu
 */
@MybatisMapper
public interface BarnProductUserMapper {

    int hasUser(String productId, String userId);

    void insertBatch(Collection<BarnProductUser> data);

    List<BarnProductUser> query(BarnProductUser productUser);

    void deleteUser(String productId, String userId);
}
